// KWClientPpg.cpp : Implementation of the CKWClientPropPage property page class.

#include "stdafx.h"
#include "KWClient.h"
#include "KWClientPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CKWClientPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CKWClientPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CKWClientPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CKWClientPropPage, "KWCLIENT.KWClientPropPage.1",
	0xb2e3a544, 0x5ddd, 0x4b77, 0xad, 0xe0, 0xe1, 0x98, 0x82, 0xd2, 0x85, 0x51)


/////////////////////////////////////////////////////////////////////////////
// CKWClientPropPage::CKWClientPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CKWClientPropPage

BOOL CKWClientPropPage::CKWClientPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_KWCLIENT_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CKWClientPropPage::CKWClientPropPage - Constructor

CKWClientPropPage::CKWClientPropPage() :
	COlePropertyPage(IDD, IDS_KWCLIENT_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CKWClientPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CKWClientPropPage::DoDataExchange - Moves data between page and properties

void CKWClientPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CKWClientPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CKWClientPropPage message handlers
